package com.ruoyi.project.oms.paeaAuAuditGroupUserRel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.oms.paeaAuAuditGroupUserRel.domain.PaeaAuAuditGroupUserRel;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 监督小组人员Mapper接口
 *
 * @author gang.wei
 * @date 2020-03-23
 */
@Component
public interface PaeaAuAuditGroupUserRelMapper extends BaseMapper<PaeaAuAuditGroupUserRel>
{
    /**
     * 查询监督小组人员
     *
     * @param id 监督小组人员ID
     * @return 监督小组人员
     */
    public PaeaAuAuditGroupUserRel selectAuditGroupAssignUserById(String id);

    /**
     * 查询监督小组人员列表
     *
     * @param paeaAuAuditGroupUserRel 监督小组人员
     * @return 监督小组人员集合
     */
    public List<PaeaAuAuditGroupUserRel> selectPaeaAuAuditGroupUserRelList(PaeaAuAuditGroupUserRel paeaAuAuditGroupUserRel);

    /**
     * 新增监督小组人员
     *
     * @param paeaAuAuditGroupUserRel 监督小组人员
     * @return 结果
     */
    public int insertPaeaAuAuditGroupUserRel(PaeaAuAuditGroupUserRel paeaAuAuditGroupUserRel);

    /**
     * 修改监督小组人员
     *
     * @param paeaAuAuditGroupUserRel 监督小组人员
     * @return 结果
     */
    public int updatePaeaAuAuditGroupUserRel(PaeaAuAuditGroupUserRel paeaAuAuditGroupUserRel);

    /**
     * 删除监督小组人员
     *
     * @param id 监督小组人员ID
     * @return 结果
     */
    public int deletePaeaAuAuditGroupUserRelById(String id);

    /**
     * 批量删除监督小组人员
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaeaAuAuditGroupUserRelByIds(String[] ids);

    /*监督小组查询*/
    public List<PaeaAuAuditGroupUserRel>  findAuditGroupByUserId(String userCode);

    public List<PaeaAuAuditGroupUserRel>  findAuditGroupByGroupId(String groupId);
}
